package com.nicy.dream.biz;

import com.nicy.dream.service.DubboService;
import io.swagger.annotations.Api;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: Dubbo控制器
 * @projectName:dream
 * @see:com.nicy.dream.biz
 * @author:NicyYe
 * @createTime:2021/3/12 11:01
 * @version:1.0
 */
@Api(tags = "Dubbo控制器")
@RestController
@RequestMapping("/dubbo")
public class DubboController {

    @Autowired
    DubboService dubboService;

    @GetMapping("/sayHello")
    @ApiOperation(value = "SayHello")
    @ApiImplicitParam(name = "name",value = "姓名",dataType = "String",required = true)
    public String sayHello(String name){
        return dubboService.sayHello(name);
    }


}
